module CSDNConfig

	# represents a single user or known Jenkins group
	class User
		attr_reader :name,:email

		def initialize(name)
			# special users
			case name.downcase
			when 'core' then _dataservice_group
			else
				# assume a single user
				@name = name
				@email = '%s@csdn.net' % name
			end
		end

		def _dataservice_group
			@name = 'wenxzhen'
			@email = 'zhengwx@csdn.net'
		end
	end

end
